package com.cats.model;

import java.io.Serializable;

public class AddressModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2908179189027377618L;
	private String fullName = null;
	private String addressLine1 = null;
	private String addressLine2 = null;
	private String city = null;
	private String state = null;
	private String zipcode = null;
	private String country = null;
	private String phone = null;
	private String email = null;
	

	public AddressModel() {
		
	}
	
	public AddressModel(
			String fullNameString, 
			String addressLine1String, 
			String addressLine2String, 
			String cityString, 
			String stateString, 
			String zipcodeString, 
			String countryString, 
			String phoneString, 
			String emailString) {
		this.setFullName(fullNameString);
		this.setAddressLine1(addressLine1String);
		this.setAddressLine2(addressLine2String);
		this.setCity(cityString);
		this.setState(stateString);
		this.setZipcode(zipcodeString);
		this.setCountry(countryString);
		this.setPhone(phoneString);
		this.setEmail(emailString);		
	}
	
	public String getFullAddress() {
		return String.format("%s %s\n%s, %s %s\n%s", this.getAddressLine1(), this.getAddressLine2(), this.getCity(), this.getState(), this.getZipcode(), this.getCountry());
	}

	/**
	 * @return the fullName
	 */
	public String getFullName() {
		return fullName;
	}

	/**
	 * @param fullName the fullName to set
	 */
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	/**
	 * @return the addressLine1
	 */
	public String getAddressLine1() {
		return addressLine1;
	}

	/**
	 * @param addressLine1 the addressLine1 to set
	 */
	public void setAddressLine1(String addressLine1) {
		this.addressLine1 = addressLine1;
	}

	/**
	 * @return the addressLine2
	 */
	public String getAddressLine2() {
		return addressLine2;
	}

	/**
	 * @param addressLine2 the addressLine2 to set
	 */
	public void setAddressLine2(String addressLine2) {
		this.addressLine2 = addressLine2;
	}

	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * @return the zipcode
	 */
	public String getZipcode() {
		return zipcode;
	}

	/**
	 * @param zipcode the zipcode to set
	 */
	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	/**
	 * @return the country
	 */
	public String getCountry() {
		return country;
	}

	/**
	 * @param country the country to set
	 */
	public void setCountry(String country) {
		this.country = country;
	}

	/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

}
